﻿namespace Netbits.Common.Collections
{
	/// <summary>
	/// Interface for access the list per indexer.
	/// </summary>
	/// <typeparam name="TItem">Type of the item</typeparam>
	public interface IIndexRead<TItem>
	{
		/// <summary>
		/// Get the item of the specified index.
		/// </summary>
		/// <param name="Index_">Index of the item to get</param>
		/// <returns>The item at the specified index, otherwise default(TItem)</returns>
		TItem this[int Index_]
		{
			get;
		}

		/// <summary>
		/// Get the number of items in the list.
		/// </summary>
		int Count
		{
			get;
		}
	}
}
